<div id="roomsProxyFeeModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b "><vc:i18n name="按量缴费" namespace="roomsProxyFee"></vc:i18n></h3>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label"><vc:i18n name="房屋" namespace="roomsProxyFee"></vc:i18n></label>
                        <div class="col-sm-10">
                            <select class="custom-select" v-model="roomsProxyFeeInfo.objId" >
                                <option selected disabled value="">{{vc.i18n('必填，请选择房屋','roomsProxyFee')}}</option>
                                <option v-for="(item,index) in roomsProxyFeeInfo.rooms" :key="index"
                                    v-bind:value="item.roomId" >
                                    {{item.floorNum}}-{{item.unitNum}}-{{item.roomNum}}
                                </option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="费用类型" namespace="roomsProxyFee"></vc:i18n>
                        </label>
                        <div class="col-sm-10">
                            <select class="custom-select" v-model="roomsProxyFeeInfo.feeTypeCd"
                                @change="_changeProxyFeeTypeCd(roomsProxyFeeInfo.feeTypeCd)">
                                <option selected disabled value="">{{vc.i18n('必填，请选择费用类型','roomsProxyFee')}}
                                </option>
                                <option value="888800010015">{{vc.i18n('水费','roomsProxyFee')}}</option>
                                <option value="888800010016">{{vc.i18n('电费','roomsProxyFee')}}</option>
                                <option value="888800010014">{{vc.i18n('其他','roomsProxyFee')}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="收费项目" namespace="roomsProxyFee"></vc:i18n>
                        </label>
                        <div class="col-sm-10">
                            <select class="custom-select" v-model="roomsProxyFeeInfo.configId"
                                @change="_changeProxyFeeConfig()">
                                <option selected disabled value="">{{vc.i18n('必填，请选择收费项目','roomsProxyFee')}}
                                </option>
                                <option v-for="(item,index) in roomsProxyFeeInfo.feeConfigs" :key="index"
                                    v-bind:value="item.configId" v-if="item.computingFormula == '6006'">
                                    {{item.feeName}}
                                </option>
                            </select>
                        </div>
                    </div>
                    <div v-if="roomsProxyFeeInfo.feeTypeCd != '888800010014'">
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label">
                                <vc:i18n name="用量" namespace="roomsProxyFee"></vc:i18n>
                            </label>
                            <div class="col-sm-10">
                                <input v-model="roomsProxyFeeInfo.consumption" @blur="_changeConsumption()" type="text"
                                    :placeholder="vc.i18n('必填，请填写用量','roomsProxyFee')" class="form-control">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label">
                                <vc:i18n name="金额" namespace="roomsProxyFee"></vc:i18n>
                            </label>
                            <div class="col-sm-10">
                                <input v-model="roomsProxyFeeInfo.amount" type="text"
                                    :placeholder="vc.i18n('必填，请填写金额','roomsProxyFee')" class="form-control "
                                    @blur="_changeAmount()">
                            </div>
                        </div>
                    </div>
                    <div v-else>
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label">
                                <vc:i18n name="个数" namespace="roomsProxyFee"></vc:i18n>
                            </label>
                            <div class="col-sm-10">
                                <input v-model="roomsProxyFeeInfo.consumption" @blur="_changeConsumption()" type="text"
                                    :placeholder="vc.i18n('必填，请填写用量','roomsProxyFee')" class="form-control">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label">
                                <vc:i18n name="金额" namespace="roomsProxyFee"></vc:i18n>
                            </label>
                            <div class="col-sm-10">
                                <input v-model="roomsProxyFeeInfo.amount" disabled="disabled" type="text"
                                    :placeholder="vc.i18n('必填，请填写金额','roomsProxyFee')" class="form-control "
                                    @blur="_changeAmount()">
                            </div>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="开始时间" namespace="roomsProxyFee"></vc:i18n>
                        </label>
                        <div class="col-sm-10">
                            <input v-model="roomsProxyFeeInfo.startTime" type="text"
                                :placeholder="vc.i18n('必填，请填写开始时间','roomsProxyFee')"
                                class="form-control proxyFeeStartTime">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="结束时间" namespace="roomsProxyFee"></vc:i18n>
                        </label>
                        <div class="col-sm-10">
                            <input v-model="roomsProxyFeeInfo.endTime" type="text"
                                :placeholder="vc.i18n('必填，请填写结束时间','roomsProxyFee')" class="form-control proxyFeeEndTime">
                        </div>
                    </div>
                    <div class="ibox-content">
                        <button class="btn btn-primary float-right" type="button" v-on:click="saveProxyInfo()">
                            <i class="fa fa-check"></i>&nbsp;保存
                        </button>
                        <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                            data-dismiss="modal">
                            <i class="fa fa-times"></i>&nbsp;取消
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>